package com.bit.ioc.facade;

public class FacadeClient {
    BedRoomLight bedRoomLight = new BedRoomLight();
    LivingRoomLight livingRoomLight = new LivingRoomLight();
    HallRoomLight hallRoomLight = new HallRoomLight();

    void lightOn(){
        bedRoomLight.on1();
        livingRoomLight.on1();
        hallRoomLight.on1();
    }

    void lightOff(){
        bedRoomLight.off();
        livingRoomLight.off();
        hallRoomLight.off();
    }
}
